﻿using System;
using HYRevitCode.ElementFilterUtility;

using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace Assist
{
    //public class LevelFilter : HYRevitCode.ElementFilterUtility.LevelFilter
    //{
    //}


    public class LevelFilter : ISelectionFilter
    {
        public bool AllowElement(Element elem)
        {
            return typeof(Level) == elem.GetType();
        }

        public bool AllowReference(Reference reference, XYZ pos)
        {
            return false;
        }
    }
}
